package p.ithorns.example.validator;

import lombok.Getter;
import lombok.Setter;

/**
 * TestClass
 *
 * @author HtL
 * @date 2025/3/13 15:23
 * @since 1.0.0
 */
@Getter
@Setter
@FieldAssociated.List(value = {
        @FieldAssociated(target = "value", when = "#type==1", then = "#value > 100"),
        @FieldAssociated(target = "value", when = "#type==2", then = "#value > 1000")
})
public class TestClass {

    int type;

    Integer value;

}